// 获取详情 /api/video/:id
import videos from '~/database/videos.json'

export default defineEventHandler((event) => {
  // console.log(event.context.params?.id, '==========')
  const id = Number(event.context.params?.id) || null
  let video = videos.find(item => item?.id === id)
  return video
})